<?php 
switch ($ts){
	
	//禁用-启用
	case "isenable":
		$tagid = $_GET['tagid'];
		$isenable = $_GET['isenable'];
		
		$DB->query("update ".dbprefix."app_tag set `isenable`='$isenable' where tagid = '$tagid'");
		
		qiMsg("设置成功！");
		
		break;
		
	//删除
	case "del":
		$tagid = $_GET['tagid'];
		$DB->query("delete from ".dbprefix."app_tag where tagid='$tagid'");
		$DB->query("delete from ".dbprefix."app_tag_group_index where tagid='$tagid'");
		$DB->query("delete from ".dbprefix."app_tag_topic_index where tagid='$tagid'");
		$DB->query("delete from ".dbprefix."app_tag_user_index where tagid='$tagid'");
		
		qiMsg("删除成功！");
		
		break;
}